package com.heima.model.behavior.pojos;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.mongodb.core.mapping.Document;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Document("collection")
public class CollectionDoc {
    @JsonSerialize(using= ToStringSerializer.class)
    Long id;
    Integer userId;
    @JsonSerialize(using= ToStringSerializer.class)
    Long articleId;
}
